#include "link.h"

#include "renderer/primitives.h"

Link::Link(float a, float b, float c):PhysicsObject(),Pickable(){

    position.x = a;
    position.y = b;
    position.z = c;
    heading.x = a;
    heading.y = b;
    heading.z = c;

    partner = nullptr;
    linked = false;
}

void Link::Draw(){
    glPushMatrix();
        glColor3f(0, 1, 0);
//        glColor3f(heading.x, heading.y, heading.z);
        glTranslatef(position.x, position.y, position.z);
        Primitives::DrawCube(0.1);
    glPopMatrix();
}

void Link::Pick(){
    glPushMatrix();
        glColor3f((float)r()/256, (float)g()/256, (float)b()/256);
        glTranslatef(position.x, position.y, position.z);
        Primitives::DrawCube(0.1);
    glPopMatrix();
}
